package com.ktdaddy.vo;


import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * @author kdaddy@163.com
 * @date 2021/7/17 23:58
 * 权限节点
 */
public class PermissionNodeVO {

    private Integer id;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer status; //状态 1-启用 2-禁用
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String component; //组件地址
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String permission; //权限编号
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String redirect; //重定向地址
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String path; //请求地址
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String name; //英文编号
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<PermissionNodeVO> children; //子节点信息
    private PermissionMetaVO meta; //元信息

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRedirect() {
        return redirect;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public PermissionMetaVO getMeta() {
        return meta;
    }

    public void setMeta(PermissionMetaVO meta) {
        this.meta = meta;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<PermissionNodeVO> getChildren() {
        return children;
    }

    public void setChildren(List<PermissionNodeVO> children) {
        this.children = children;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
}
